package com.juku2024.juku.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.juku2024.juku.R
import com.juku2024.juku.model.HotSearchItemModel
import java.util.*

class HotSearchAdapter(data: ArrayList<HotSearchItemModel>) : BaseQuickAdapter<HotSearchItemModel, BaseViewHolder>(R.layout.item_hot_search, data) {

    override fun convert(holder: BaseViewHolder, item: HotSearchItemModel) {
        holder.setText(R.id.tvHotName, item.name)
            .setText(R.id.tvHotTag, "荐")
            .setText(R.id.tvHotDes, item.subtitle)
    }

}